#ifndef BUTTON_H
#define BUTTON_H

#include <QPushButton>

class Button: public QPushButton
{
    Q_OBJECT;


public:
    explicit Button(QWidget *parent = 0);
    void paintEvent(QPaintEvent *e);
    enum DrawItem{Empty = 0, Cross, Nought};
private:
    DrawItem drawItem;
public:
    void setDrawItem(DrawItem drawItem);
    DrawItem getDrawItem()const;

signals:
    void buttonClick(Button *b);
    void stateChanged();
private slots:
    void click();

};

#endif // BUTTON_H
